home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / GREPBRWS.ZIP / EX1.CPP < prev    next >
C/C++ Source or Header  |  1993-09-15  |  876b  |  39 lines

  1. // This C++ file has errors in it
  2. // and is designed to show how
  3. // GrepBrowser can work with output
  4. // from Borland C++ 3.1.  
  5. //
  6. //
  7. // To compile
  8. //
  9. //      bcc ex1.cpp >bcc.err
  10. //
  11. // To convert BCC error format to
  12. // GrepBrowser format
  13. //
  14. //      bcc2grep.bat
  15. //
  16. // This creates processes bcc.err to
  17. // create bcc.grp which can be fed to
  18. // GrepBrowser
  19. //
  20. // To open GrepBrowser on compiler
  21. // warning and error messages (from
  22. // Windows command line or Program Manager
  23. // (Assuming you are working in a directory
  24. // called \work)
  25. //
  26. //      gb \work\bcc.grp
  27. //
  28. // Typically compilation and converion
  29. // of output would be managed by a
  30. // makefile.
  31. //
  32.  
  33. main()
  34. {
  35.     int i = 3               // missing semicolon
  36.     j++;                    // reference to undeclared variable
  37.     printf("hello\n");      // call to undefined function
  38. }
  39.